//
//  LoadingScene.m
//  jumpingfrog
//
//  Created by Tri Vo on 8/19/13.
//  Copyright 2013 Tri Vo. All rights reserved.
//

#import "LoadingScene.h"
#import "GameController.h"


@implementation LoadingScene

+ (id) sceneWithTargetScene:(TargetSceneTypes)sceneType {
    return [[self alloc] initWithTargetScene:sceneType];
}

- (id)initWithTargetScene:(TargetSceneTypes)sceneType {
    if (self = [super init]) {
        targetScene = sceneType;
        CCLabelTTF *pLabel = [CCLabelTTF labelWithString:@"Loading ..." fontName:@"Marker Felt" fontSize:64];
        CGSize winSize = [[CCDirector sharedDirector] winSize];
        [pLabel setPosition:CGPointMake(winSize.width/2, winSize.height/2)];
        [self scheduleOnce:@selector(loadScene:) delay:0.0f];
    }
    return self;
}

- (void) loadScene:(ccTime) delta {
    // Decide which scene to load based on the TargetScenes enum
    switch (targetScene) {
        case TargetSceneFIRST:
        {
            
        }
            break;
        case TargetSceneOTHER:
        {
            
        }
            break;
        default:
            break;
    }
}

@end
